#ifndef	__I2C_H
#define	__I2C_H
#include "hal_mcu.h"

extern void HalI2cInit(void);
extern void HalI2cStart(void);
extern void HalI2cStop(void);
extern uint8 HalI2cReadAck(void);
extern void HalI2cSendNAck(void);
extern void HalI2cSendAck(void);
extern void HalI2cWriteByte(uint8 w_data);
extern uint8 HalI2cReadByte(void);
extern uint8 HalI2cWriteReg(uint32 slaveaddr,uint32 regAddr,uint8 data);
extern uint8 HalI2cReadReg(uint32 slaveaddr,uint32 regAddr,uint8 *data);
#endif





